#![feature(negative_impls)]

use std::{env, fs};
mod lex;

fn main() {
    let args: Vec<String> = env::args().collect();
    if args.len() < 2 {
        eprintln!("Usage: {} <filename>", args[0]);
        std::process::exit(1);
    }

    let file_name = &args[1];
    let input = fs::read_to_string(file_name).expect("Fialed to read file");
    let tokens = lex::tokenize(file_name, &input);
    eprintln!("{}", tokens);
}
